def is_collide_rect(rect1, rect2):
    '''
    判断两个pygame的rect对象是否碰撞(重叠)
    :param rect1:
    :param rect2:
    :return: 布尔值
    '''
    x1 = rect1.x
    y1 = rect1.y
    w1 = rect1.width
    h1 = rect1.height
    x2 = rect2.x
    y2 = rect2.y
    w2 = rect2.width
    h2 = rect2.height
    is_collide = False


